# Configuring application servers
## _This role handles the steps of installing applications as systemd daemons._

![N|Solid](https://cdn4.iconfinder.com/data/icons/ui-design-modern/32/expanded-outline-UI-Line_browser-128.png)

![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)

## Description 
- This role is starting process and finish playbook
- This role depends on the role gunicorn_installation
- An application written in Go will respond on port 8080
- An application written in Go will respond on port 8081 (Due to pyapp.service)
## Dependencies
- None

## Role Variables

_For example:_

```sh
app_folders:
  - { name: "goapp", user: "{{ ansible_user }}" }
  - { name: "pyapp", user: "{{ ansible_user }}" }

```

>The variable _app_folders_ contains a list of keys such as:
>  name: Must match the name of the service and application file
>  user: Will be used to grant necessary privileges and to start daemons

## Requirements
- Prepare inventory file
- The ansible of the latest version must be installed
> For example, generate a file from 
> a template using Terraform

## Installation
Run playbook 
```sh
ansible-playbook -i inventory simple-web-app-install.yml
```
## Example Playbook

```sh
---
- hosts: proxy_server
  become: true
  roles:
    - configuring_app_servers
  tags: configuring_app_servers
```

## Author Information
@alexei.d